package com.yz.study.test;
@FunctionalInterface
interface Foo{
    public int add(int x,int y);
    default int div(int x,int y){return x/y;}
}


public class LambdaExpressDemo {
    public static void main(String[] args) {
        Foo foo=(int x,int y)->{
            System.out.println("----come in");
            int result=x+y;
            return result;
        };
        System.out.println(foo.add(32,2));
        System.out.println(foo.div(10,5));
    }
}